import request from "@/utils/request";

//完成过程检验单
export function completedGc(data) {
  return request({
    url: "/quality/process",
    method: "PUT",
    data,
  });
}

//查询过程检验单列表
export function getGcList(query) {
  return request({
    url: "/quality/process/list",
    method: "post",
    params: query,
  });
}

// 新增过程检验单列表
export function addGc(data) {
  return request({
    url: "/quality/process/add",
    method: "post",
    data: data,
  });
}
// 上传过程检验单
export function uploadGc(data) {
  return request({
    url: "/quality/process/upload",
    method: "post",
    data: data,
  });
}
// 删除过程检验单
export function delGc(id) {
  return request({
    url: "/quality/process/delete/id?=" + id,
    method: "delete",
  });
}
// 下载过程检验单
export function downloadGc(data) {
  return request({
    url: "/quality/process/download/image",
    method: "get",
  });
}
